import request from '@/utils/request'
const FACEAPIURL = '/plan-producer-server'

//项目施工现场情况调查表

/**
 * 编辑项目施工现场情况调查表
 * @param data
 */
export function planSiteInvestigationUpdateByEntity(data) {
    return request({
        url: `${FACEAPIURL}/planSiteInvestigation/updateByEntity`,
        method: 'post',
        data
    })
}
/**
 * 查看 项目施工现场情况调查表
 * @param data
 */
 export function getPlanSiteInvestigationById(data) {
    let version = data.version?`?version=${data.version}`:'';
    return request({
        url: `${FACEAPIURL}/planSiteInvestigation/getPlanSiteInvestigationById?planId=${data.planId}${version}`,
        method: 'post',
        data
    })
}